import request from "@/utils/request";

// 第一部分
export function getStat1API(query) {
  return request({
    url: "/home/overview/getOperationStatistic",
    method: "get",
    params: query,
  });
}
// 设备状态
export function getStat2API(query) {
  return request({
    url: "/home/overview/getOperatorChargeUsedStatus",
    method: "get",
    params: query,
  });
}
// 设备报警/故障
export function getStat3API(query) {
  return request({
    url: "/home/overview/getAlarmFaultHistory",
    method: "get",
    params: query,
  });
}
// 充电活跃度分析
export function getStat4API(query) {
  return request({
    url: "/home/overview/countDayChargingActivity",
    method: "get",
    params: query,
  });
}
// 收入趋势
export function getStat5API(query) {
  return request({
    url: "/home/overview/monthRevenueCount",
    method: "get",
    params: query,
  });
}
// 充电次数趋势
export function getStat6API(query) {
  return request({
    url: "/home/overview/monthChargingCount",
    method: "get",
    params: query,
  });
}
// 站点 近30天收入金额Top 5
export function getStat7API(query) {
  return request({
    url: "/home/overview/getStationRevenueRank",
    method: "get",
    params: query,
  });
}
// 充电桩 近30天收入金额Top 5
export function getStat8API(query) {
  return request({
    url: "/home/overview/getDeviceRevenueRank",
    method: "get",
    params: query,
  });
}
// 站点 近30天充电次数Top 5
export function getStat9API(query) {
  return request({
    url: "/home/overview/getStationChargingCountRank",
    method: "get",
    params: query,
  });
}
// 充电桩 近30天充电次数top 5
export function getStat10API(query) {
  return request({
    url: "/home/overview/getDeviceChargingCountRank",
    method: "get",
    params: query,
  });
}
